import { SysCustomWidgetType, OnlineFormEventType } from '@/common/staticDict/index';

const qrcode = {
  span: {
    name: '组件宽度',
    widgetType: SysCustomWidgetType.Slider,
    value: 12,
    disabled: false,
    min: 1,
    max: 24,
  },
  width: {
    name: '二维码宽高',
    widgetType: SysCustomWidgetType.NumberInput,
    value: 100,
    disabled: false,
    min: 1,
  },
};

const qrcodeConfig = {
  widgetType: SysCustomWidgetType.QRCODE,
  icon: 'online-icon icon-qrcode',
  attribute: qrcode,
  allowEventList: [OnlineFormEventType.VISIBLE],
  supportBindTable: true,
  supportBindColumn: true,
};

export default qrcodeConfig;
